#include"UdpServer.hpp"

int main(int argc,char* argv[]) //参数：端口号
{
    if(argc != 2)
    {
        std::cerr<<"Usage:./udp_server <server_port>"<<std::endl;
        exit(3);
    }
    uint16_t port = std::atoi(argv[1]);
    ENABLE_CONSOLE_LOG();
    UdpServer server(port);
    server.Init();
    server.Start();
    return 0;
}